package com.wwwarehouse.usercenter.bean.permission_recycle;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by xiaoke.ni on 2017/10/16.
 */

public class RetrieveAuthorityBean {

    /**
     * details : [{"faileReason":"权限过期,自动回收","userName":"如花"},{"faileReason":"未知原因","userName":"恩希尔"}]
     * nameDesc : 入库上架
     * status : 2
     * users : ["花无缺","小鱼儿"]
     */

    private String nameDesc;
    private String status;
    private List<DetailsBean> details;
    private List<String> users;

    public String getNameDesc() {
        return nameDesc;
    }

    public void setNameDesc(String nameDesc) {
        this.nameDesc = nameDesc;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public List<DetailsBean> getDetails() {
        return details;
    }

    public void setDetails(List<DetailsBean> details) {
        this.details = details;
    }

    public List<String> getUsers() {
        return users;
    }

    public void setUsers(List<String> users) {
        this.users = users;
    }

    public static class DetailsBean implements Parcelable {
        /**
         * faileReason : 权限过期,自动回收
         * userName : 如花
         */

        private String faileReason;
        private String userName;

        public DetailsBean() {
        }

        protected DetailsBean(Parcel in) {
            faileReason = in.readString();
            userName = in.readString();
        }

        public static final Creator<DetailsBean> CREATOR = new Creator<DetailsBean>() {
            @Override
            public DetailsBean createFromParcel(Parcel in) {
                return new DetailsBean(in);
            }

            @Override
            public DetailsBean[] newArray(int size) {
                return new DetailsBean[size];
            }
        };

        public String getFaileReason() {
            return faileReason;
        }

        public void setFaileReason(String faileReason) {
            this.faileReason = faileReason;
        }

        public String getUserName() {
            return userName;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(faileReason);
            dest.writeString(userName);
        }
    }
}
